package cn.yunyichina.provider.hymed.service;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.framework.dubbo.service.impl.YytServiceImpl;
import cn.yunyichina.provider.iface.entity.common.ResCommon;
import cn.yunyichina.provider.iface.entity.dto.hymed.*;
import cn.yunyichina.provider.iface.service.IHymed;

/**
 * Created by Lullaby on 2017/10/19
 */
public class HymedAppService extends YytServiceImpl implements IHymed {

    @Override
    public ResCommon<MedicalCardQueryResponseDTO> queryMedicareCard(MedicalCardQueryRequestDTO queryRequestDTO) {
        return SpringContextHandler.getBean(MedicareService.class).queryMedicareCard(queryRequestDTO);
    }

    @Override
    public ResCommon<PaymentConsumeResponseDTO> consumePayment(PaymentConsumeRequestDTO payRequestDTO) {
        return SpringContextHandler.getBean(PaymentService.class).consumePayment(payRequestDTO);
    }

    @Override
    public ResCommon<PaymentBalanceResponseDTO> balancePayment(PaymentBalanceRequestDTO balanceRequestDTO) {
        return SpringContextHandler.getBean(PaymentService.class).balancePayment(balanceRequestDTO);
    }

    @Override
    public ResCommon<PaymentRevokeResponseDTO> revokePayment(PaymentRevokeRequestDTO revokeRequestDTO) {
        return SpringContextHandler.getBean(PaymentService.class).revokePayment(revokeRequestDTO);
    }

    @Override
    public ResCommon<PaymentQueryResponseDTO> queryPayment(PaymentQueryRequestDTO queryRequestDTO) {
        return SpringContextHandler.getBean(PaymentService.class).queryPayment(queryRequestDTO);
    }

}
